package com.ic.loan.http

import com.blankj.utilcode.util.ToastUtils

/**
 * Created by icebox12 on 2017/a/13.
 */
abstract class ResultListener {
    abstract fun onSucceeded(json: String?)
    fun onSucceeded(json: String?, msg: String = ""){}
    fun onSucceededToBaseBeen() {}
    open fun onFailed(content: String?) {
        content?.apply {
            ToastUtils.showShort(content)
        }
    }

    fun onFailed(content: String?, `object`: String?) {}
    open fun onErr(e: String?) {}

    //请求完成
    open fun onLoadFinish() {}
}